import {
  HTTP
}
from '../utils/http.js';

import {
  config
}
from '../config/config.js';

class GoodsDetailModel extends HTTP {
  getGoodsDetail(p_id) {
    return this.request({
      url: config.GoodsDetail,
      data: {
        id: p_id
      }
    })
  }
  
  getCommentList() {
    return this.request({
      url: config.CommentList
    })
  }
  
  getCommentCount() {
    return this.request({
      url: config.CommentCount
    })
  }
  
  getCommentCount() {
    return this.request({
      url: config.CommentCount
    })
  }

  getGoodsRelated(id) {
    return this.request({
      url: config.GoodsRelated,
      data: {
        id: id
      }
    })
  }
}

export {
  GoodsDetailModel
}